function Para(serverName, methodName) {
    var jsonArry = new Array();
    var server = {};
    if (serverName) {
        server["serverName"] = serverName;
    }
    if (methodName) {
        server["methodName"] = methodName;
    }

    this.setServerName = function(name) {
        if (!name) {
            throw "Invalid Value,The name does not exist " + name;
        }
        server["serverName"] = name;
    }

    this.setMethodName = function(name) {
        if (!name) {
            throw "Invalid Value,The name does not exist " + name;
        }
        server["methodName"] = name;
    }

    this.setIntegerValue = function(name, val) {
        if (isNaN(val)) {
            throw "Invalid Value,Not a Integer type " + val;
        }
        var json = {};
        json["name"] = name;
        json["value"] = parseInt(val);
        json["type"] = "Integer";
        jsonArry[jsonArry.length] = json;
    }

    this.setStringValue = function(name, val) {
        var json = {};
        json["name"] = name;
        json["value"] = val.toString();
        json["type"] = "String";
        jsonArry[jsonArry.length] = json;
    }

    this.setLongValue = function(name, val) {
        if (isNaN(val)) {
            throw "Invalid Value,Not a Long type " + val;
        }
        var json = {};
        json["name"] = name;
        json["value"] = Number(val);
        json["type"] = "Long";
        jsonArry[jsonArry.length] = json;
    }

    this.setBooleanValue = function(name, val) {
        if (val !== true || val !== false) {
            throw "Invalid Value,Not a Boolean type " + val;
        }
        var json = {};
        json["name"] = name;
        json["value"] = val;
        json["type"] = "Boolean";
        jsonArry[jsonArry.length] = json;
    }

    this.setDateValue = function(name, val) {
        var result = val.match(/^(\d{1,4})(-|\/)(\d{1,2})\2(\d{1,2})$/);
        if (result == null)
            throw "Invalid Value,Date format is not correct " + val;

        var json = {};
        json["name"] = name;
        json["value"] = val;
        json["type"] = "Date";
        jsonArry[jsonArry.length] = json;
    }

    this.setDateTimeValue = function(name, val) {
        var r = val.match(/^(\d+)-(\d{ 1,2 })-(\d{ 1,2}) (\d{ 1,2 }):(\d{ 1,2}):(\d{ 1,2 })$/);
        if (r == null)
            throw "Invalid Value,DateTime format is not correct " + val;

        var json = {};
        json["name"] = name;
        json["value"] = val;
        json["type"] = "DateTime";
        jsonArry[jsonArry.length] = json;
    }

    this.setTimeValue = function(name, val) {
        var result = val.match(/^(\d{1,2})(:)?(\d{1,2})\2(\d{1,2})$/);
        if (result == null)
            throw "Invalid Value,Time format is not correct" + val;

        var json = {};
        json["name"] = name;
        json["value"] = val;
        json["type"] = "Time";
        jsonArry[jsonArry.length] = json;
    }

    this.getJson = function() {
        return jsonArry;
    }

    this.getServer = function() {
        return server;
    }

    this.getserverPara = function() {
        var str = "";
        for (s in server) {
            str += s + "=" + server[s] + "&";
        }
        return str.substring(0, str.length - 1);
    }
}